#pragma once
#include "../common/LogicBase.h"
#include "../common/CLog.h"
#include "../common/ConfigOpe.h"
#include "../common/CSync.h"
#include "../common/ActionQueue.h"
#include "../common/DataSave.h"
#include "../common/MsgQueue.h"
class NH3NDataSaveLogic: public CLogicBase
{
public:
	NH3NDataSaveLogic(void);
	~NH3NDataSaveLogic(void);
	bool Run();

private:
	bool LoadConfigInfo();
	bool CreateReadThread();
	void CreateVarList();
	bool InitSaveLogic();
	bool GoSaveHDData(ValueData* HDVdata);
	bool GoSaveRTData(ValueData* RTVdata);
	bool Work();
private:	
	CLog myLog;
	GlobalSoftwareInfo mySoftwareInfo;
	GlobalInstrumentInfo myInstrumentInfo;	
	vector<tagVarType3*> pType3List; 
	CSync syncType3;
	CMsgQueue myMsgQueue;

};
